import request from '/@/utils/request';

export function useLogisticalApi() {
    return {
        queryLogisticalList: (data: object) => {
            return request({
                url: '/api/logistical/queryList',
                method: 'post',
                data,
            });
        },

        queryAllLogisticalList: () => {
            return request({
                url: '/api/logistical/queryAllList',
                method: 'post',
            });
        },

        logisticalDetail: (data: object) => {
            return request({
                url: '/api/logistical/detail',
                method: 'post',
                data,
            });
        },

        editLogistical: (data: object) => {
            return request({
                url: '/api/logistical/edit',
                method: 'post',
                data,
            });
        },

        deleteLogistical: (data: object) => {
            return request({
                url: '/api/logistical/delete',
                method: 'post',
                data,
            });
        },
    };
}